package org.ladybug.spring.security;

import org.springframework.security.providers.UsernamePasswordAuthenticationToken;
import org.springframework.security.providers.dao.DaoAuthenticationProvider;

public class LadybugAuthenticationProvider extends DaoAuthenticationProvider{



	public boolean supports(Class aClass) {
		System.out.println("LadybugAuthenticationProvider.supports()");
		System.out.println("Classe ricevuta: " + aClass);
		return aClass.getName().equals(
				UsernamePasswordAuthenticationToken.class.getName());
	}


	

//	protected UserDetails retrieveUser(String username,
//			UsernamePasswordAuthenticationToken authentication)
//			throws AuthenticationException {
//		UserDetails userDetails = authenticationService.loadUserByUsername((String) authentication.getPrincipal());
//		return userDetails;
//	}

}
